package com.ssm.model;

import java.util.Date;

public class Log {

	private Integer id;
	private Date dml_date;
	private String content;
	private String n_id;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDml_date() {
		return dml_date;
	}

	public void setDml_date(Date dmlDate) {
		dml_date = dmlDate;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getN_id() {
		return n_id;
	}

	public void setN_id(String nId) {
		n_id = nId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((content == null) ? 0 : content.hashCode());
		result = prime * result
				+ ((dml_date == null) ? 0 : dml_date.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((n_id == null) ? 0 : n_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Log other = (Log) obj;
		if (content == null) {
			if (other.content != null)
				return false;
		} else if (!content.equals(other.content))
			return false;
		if (dml_date == null) {
			if (other.dml_date != null)
				return false;
		} else if (!dml_date.equals(other.dml_date))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (n_id == null) {
			if (other.n_id != null)
				return false;
		} else if (!n_id.equals(other.n_id))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Log [content=" + content + ", dml_date=" + dml_date + ", id="
				+ id + ", n_id=" + n_id + "]";
	}

}
